package com.dongjiantong.user.model.dtos;

import com.dongjiantong.common.model.RoleModel;
import com.dongjiantong.mybatis.BaseEntity;

import javax.persistence.Column;
import javax.persistence.Transient;
import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author cao
 * @create 2017-11-16 下午1:37
 **/
public class OrgUserDto extends BaseEntity {


    private String realname;

    private String mobile;

    @Column(name = "user_type")
    private Integer userType;

    private Integer gender;

    private String title;

    private String avatar;

    private String idcard;

    private Integer ismaster;

    private Integer isacert;


    private Integer isbcert;

    //区域信息

    private String province;

    @Column(name="province_id")
    private Integer provinceId;

    private String city;

    @Column(name="city_id")
    private Integer cityId;

    private String region;

    @Column(name="region_id")
    private Integer regionId;

    private String street;

    @Column(name="street_id")
    private Integer streetId;

    private String village;

    @Column(name="village_id")
    private Integer villageId;

    @Column(name="relation_id")
    private Long relationId;

    @Column(name = "created_at")
    private Date createdAt;


    //登录信息
    @Column(name = "user_id")
    private long userId;

    private String username;

    private Integer status;

    private Integer logincount;


    //app角色
    @Transient
    private List<RoleModel> appRole;



    //Web角色
    @Transient
    private List<RoleModel> webRole;



    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard;
    }

    public Integer getIsmaster() {
        return ismaster;
    }

    public void setIsmaster(Integer ismaster) {
        this.ismaster = ismaster;
    }

    public Integer getIsacert() {
        return isacert;
    }

    public void setIsacert(Integer isacert) {
        this.isacert = isacert;
    }

    public Integer getIsbcert() {
        return isbcert;
    }

    public void setIsbcert(Integer isbcert) {
        this.isbcert = isbcert;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public Integer getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(Integer provinceId) {
        this.provinceId = provinceId;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public Integer getCityId() {
        return cityId;
    }

    public void setCityId(Integer cityId) {
        this.cityId = cityId;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public Integer getRegionId() {
        return regionId;
    }

    public void setRegionId(Integer regionId) {
        this.regionId = regionId;
    }

    public String getStreet() {
        return street;
    }

    public void setStreet(String street) {
        this.street = street;
    }

    public Integer getStreetId() {
        return streetId;
    }

    public void setStreetId(Integer streetId) {
        this.streetId = streetId;
    }

    public String getVillage() {
        return village;
    }

    public void setVillage(String village) {
        this.village = village;
    }

    public Integer getVillageId() {
        return villageId;
    }

    public void setVillageId(Integer villageId) {
        this.villageId = villageId;
    }

    public Long getRelationId() {
        return relationId;
    }

    public void setRelationId(Long relationId) {
        this.relationId = relationId;
    }

    public Date getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Date createdAt) {
        this.createdAt = createdAt;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getLogincount() {
        return logincount;
    }

    public void setLogincount(Integer logincount) {
        this.logincount = logincount;
    }

    public List<RoleModel> getAppRole() {
        return appRole;
    }

    public void setAppRole(List<RoleModel> appRole) {
        this.appRole = appRole;
    }

    public List<RoleModel> getWebRole() {
        return webRole;
    }

    public void setWebRole(List<RoleModel> webRole) {
        this.webRole = webRole;
    }



}
